package org.dtrd.modules.record.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.record.entity.po.DtrdEntRdSigninBody;
import java.util.Date;

/**
 * <p>
 * 人体成分分析表
 * </p>
 *
 * @author sun
 * @since 2022-08-08
 */
@Getter
@Setter
@ApiModel(value = "人体成分分析表详情")
public class SigninBodyDetail {

    private Integer dataId;



    @ApiModelProperty("患者id")
    private Integer patientId;

    @ApiModelProperty("记录日期  yyyy-MM-dd")
    private String recordDate;

    @ApiModelProperty("记录时间 yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    @ApiModelProperty("人体成分分析图")
    private String recordPhoto;

    @ApiModelProperty("身高")
    private String height;

    @ApiModelProperty("体重")
    private String weight;

    @ApiModelProperty("肌肉")
    private String muscle;

    @ApiModelProperty("骨骼肌")
    private String skeletalMuscle;

    @ApiModelProperty("骨质")
    private String bone;

    @ApiModelProperty("BMI")
    private String bmi;

    @ApiModelProperty("腰臀比")
    private String whr;

    @ApiModelProperty("蛋白质")
    private String protein;

    @ApiModelProperty("脂肪")
    private String fat;

    @ApiModelProperty("体脂")
    private String bodyFat;

    @ApiModelProperty("无机盐")
    private String inorganicSalt;

    @ApiModelProperty("基础代谢")
    private String bmr;

    public SigninBodyDetail parseFromPo(DtrdEntRdSigninBody po) {
        dataId = po.getDataId();
        patientId = po.getPatientId();
        recordDate = po.getRecordDate();
        recordTime = po.getRecordTime();
        recordPhoto = po.getRecordPhoto();
        height = po.getHeight();
        weight = po.getWeight();
        muscle = po.getMuscle();
        skeletalMuscle = po.getSkeletalMuscle();
        bone = po.getBone();
        bmi = po.getBmi();
        whr = po.getWhr();
        protein = po.getProtein();
        fat = po.getFat();
        bodyFat = po.getBodyFat();
        inorganicSalt = po.getInorganicSalt();
        bmr = po.getBmr();
        return this;
    }
}
